export default class Button {
    constructor() {
      this.plugin = {
        name: "椰奶状态按钮",
        dsc: "椰奶状态按钮",
        priority: 101,
        rule: [
            {
              reg: '^#?虚空帮助',
              fnc: 'buttonCenter'
            },
            {
              reg: '^#?锻炼',
              fnc: 'buttonCenter'
            },
            {
              reg: '^#?闭关突破',
              fnc: 'buttonCenter'
            },
            {
              reg: '^#?虚空做委托',
              fnc: 'buttonCenter'
            },
            {
              reg: '^#?虚空(十连)抽武器',
              fnc: 'buttonCenter'
            },
            {
              reg: '^#?领取低保',
              fnc: 'buttonCenter'
            },
            {
              reg: '^#?娶群友',
              fnc: 'buttonCenter'
            },
            {
              reg: '^#?我的武器',
              fnc: 'buttonCenter'
            }
        ]
      }
    }
    async buttonCenter(e){
      const game = (e.game === 'sr' || e.isSr) ? '星铁' : ''
      const list = [
        [
          { label: '虚空帮助', callback: `/虚空帮助` },
          { label: '锻炼', callback: `/锻炼` },
        ],[
          { label: '闭关突破', callback: `/闭关突破` },
          { label: '虚空做委托', callback: `/虚空做委托` },
        ],[
          { label: 'dau', callback: `/dau` },
          { label: '帮助', callback: `/帮助` },
        ],[
          { label: '虚空抽武器', callback: `/虚空抽武器` },
          { label: '虚空十连抽武器', callback: `/虚空十连抽武器` }
        ]
      ]
      return Bot.Button(list)
    }
  }